package com.leyantech.ecp.agenx.common.entity.client.config;

import com.leyantech.ecp.agenx.common.config.AssistantRole;
import com.leyantech.ecp.agenx.common.config.EnumAssistantStatus;
import com.leyantech.ecp.agenx.common.config.ProductCode;

import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author dongxu.ma, {@literal <dongxu.ma@leyantech.com>}
 * @date 2021-11-17.
 */
@NoArgsConstructor
@Getter
@Setter
public class AssistantConfig {

  private String id;
  private String name;
  // 是否授权
  private boolean auth;
  // 客服角色
  private AssistantRole role = AssistantRole.NORMAL;

  private ProductCode product = ProductCode.NORMAL;

  private String storeId;
  private String storeName;

  // lxk 下的是否能下发
  private boolean lxkAuth;

  // 当前门店在线的所有客服.
  private List<OnlineAssistantInfo> onlineAssistantInfoList;

  // 客服状态，接待，不接待
  private EnumAssistantStatus assistantStatus = EnumAssistantStatus.SERVING;

  @Data
  @Builder
  public static class OnlineAssistantInfo {

    private String assistantId;
    private String assistantName;
    @Default
    private AssistantRole role = AssistantRole.NORMAL;
    // 是否授权
    private boolean auth;

    private EnumAssistantStatus assistantStatus;

  }

}
